﻿using System;
using System.Globalization;
using System.Windows;
using System.Windows.Data;

namespace ZFCNew.Converters
{
    /// <summary>
    /// A type converter for visibility and boolean values.
    /// </summary>
    public class TeamIdToFlagConverter : IValueConverter
    {
        private const string FlagUrlFormat = "../Resources/Flags/{0}.png";
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return string.Format(FlagUrlFormat, value.ToString().Trim());
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
           throw new NotImplementedException();
        }
    }
}